package com.example.supplychainbackend.controller.dto.quality;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UnqualifiedDto {
    Long id;
    //创建时根据自增主键生成
    String nonconformingProductNumber;

    //可以根据检验单编号获取的参数
    String inspectionBatchNumber;
    String inspector;
    String inspectionTime;
    String requestor;
    String requestDepartment;
    String requestTime;
    Integer referenceDocumentType;
    String referenceDocumentNumber;
    Integer sourceDocumentType;
    String sourceDocumentNumber;
    String sourceDocumentLineNumber;
    String materialName;
    String materialDescription;
    String manufacturer;
    String manufacturerMaterialCode;
    String supplierCode;
    String supplierName;

    //审核状态
    String auditStatus;

    String createDepartment;

    //生产工单号（上面的referenceDocumentNumber）-计划工单号-销售订单号-合同号
    String contractNumber;
    String contractName;
    String salesOrderNumber;
    String salesOrderName;
    String purchaseOrderNumber;//这个估计没有
    String workOrderNumber;//计划工单号

    Integer materialCategory;//找不到
    Integer materialSubCategory;//找不到

    String nonconformingDescription;//找不到


    //把measureLists序列化？
    String disposalMeasures;

    //create param
    String inspectionOrderNumber;
    String materialNumber;
    String supplier;
    Integer unqualifiedQuantity;
    Integer nonconformingSource;
    Integer nonconformingOrigin;
    Integer nonconformingCategory;
    Integer nonconformingReason;
    String purchaseOrder;
    String workOrder;
    String area;
    String productionLine;
    List<MeasureDto> measureLists;

    String	userName;
    String	enterpriseName;
    Boolean	onChain;
    String	transactionId;
    String	commitTime;
    String	userId;
    String	enterpriseId;
}
